package com.right.health.app.base;

import android.content.Context;

import java.util.List;

/**
 * Base view
 * Created by Hope on 17/3/1.
 */

public interface IBaseView<K> {

    Context getViewContext();

    void loadError(int errorCode, String message);

    void showToast(String msg);

    void showToast(int msg);

    void hasMore(boolean hasMore);

    void loadComplete(List<K> dataSource);

    void loadComplete(K dataSource);

}
